package mlz.b_enum;

public class DemoTest01 {
    public static void main(String[] args) {
//        Person p1 = new Person("张三","男");
//        Person p2 = new Person("李四","abc");

        System.out.println(Sex.BOY);
        System.out.println(Sex.GIRL);

        Sex boy = Sex.BOY;
        Sex girl = Sex.GIRL;

        Person p1 = new Person("张三", boy);
        Person p2 = new Person("李四", Sex.GIRL);


    }
}
